//http://localhost:8080/add
const router = require("koa-router")();
const MembersModel = require("../../models/Members")
/* const Router = require("koa-router")
const router = new Router();
console.log(router instanceof Router) */
// 查询数据库
router.get("/m1/doDelete",async ctx=>{
    // ctx.body = "add"
    var {id} = ctx.query;
    console.log(ctx.query)
    // await ctx.render("add")
    await MembersModel.deleteOne({_id:id})
})
module.exports = router;